package com.demo.encryptionDecryption.aes;

import lombok.extern.slf4j.Slf4j;

/**
 * @author qingqing.liang
 * @create 2017-12-19
 **/
@Slf4j
public class Client {

    public static void main(String[] args) throws Exception{

        test();

        log.info("====================分割线====================");




    }

    /**
     * AES加密
     */
    public static void test(){

        String data = "test";
        String aesKey = "ss";

        log.info("待加密数据:{}",data);

        String result = AesUtil.encrypt(data,aesKey);

        log.info("AES加密结果:{}",result);

        String decryptData = AesUtil.decrypt(result,aesKey);

        log.info("AES解密结果:{}",decryptData);

    }
}
